{extend name="public:index"/}
{block name="title"}{:sysconf('title')}{/block}
{block name="static"}<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>{/block}
{block name="content"}
<div class="yaoqingbox">
    <div class="yaoq">
        <a class="a1" href="javascript:;">生成我的二维码</a>
        <a class="a2" href="javascript:;">立即邀请好友</a>
    </div>
</div>
<div class="zhishi"><img src="__INDEX__/images/zhishi.png" alt=""></div>
<script type="text/javascript">
    $('.yaoqingbox .a1').click(function(){
       if ("{$user['type']}" == 1)
       {
           window.location.href="{:url('User/pleaseshow')}";
       } else {
           layer.msg("只有成为代言人才可生成二维码",{icon:5});
       }
    });
    $('.yaoqingbox .a2').click(function(){
        $('.zhishi').show();
    });
     $('.zhishi').click(function(){
        $('.zhishi').hide();
    })
</script>
{/block}